package com.neuedu.his.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.his.entity.Drugs;
import com.neuedu.his.mapper.DrugsMapper;

@Service
@Transactional
public class DrugsServiceImpl implements DrugsService{
	
	@Autowired
	private DrugsMapper dao;
	
	@Override
	public List<Drugs> selectAll(Drugs u) {
		return dao.selectAll(u);
	}

	@Override
	public Drugs selectById(Drugs u) {
		return dao.selectById(u);
	}

	@Override
	public List<Drugs> selectOnlyDrugsName(Drugs u) {
		return dao.selectOnlyDrugsName(u);
	}
}
